package com.derbysoft.dswitch.adapter.ihg.common.domain;

import javax.persistence.*;
import java.util.Date;

@Entity
public class Reservation {

    @Id
    @Column(nullable = false, length = 50)
    private String ersp;

    @Column(nullable = false, length = 50)
    private String hotelPassport;

    private int modifyTimes;

    @Enumerated(EnumType.STRING)
    @Column(length = 15)
    private Status status = Status.PREVIEW;

    private Date createTime = new Date();

    private Date lastUpdateTime;

    public int getModifyTimes() {
        return modifyTimes;
    }

    public void setModifyTimes(int modifyTimes) {
        this.modifyTimes = modifyTimes;
    }

    public String getErsp() {
        return ersp;
    }

    public void setErsp(String ersp) {
        this.ersp = ersp;
    }

    public String getHotelPassport() {
        return hotelPassport;
    }

    public void setHotelPassport(String hotelPassport) {
        this.hotelPassport = hotelPassport;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
}
